package com.css.dzj.zfjg.modules.overlimit.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * 接收未认领超限表
 */
@Entity
@Table(name = "JG_LHJG_WRLCX", schema = "DZJZFJG", catalog = "")
public class JgLhjgWrlcxEntity {
    private String uuid;
    private String taskNo;
    private String taskCount;
    private Date createTime;
    private String delFlag;

    @Id
    @Column(name = "Uuid")
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "com.css.dzj.zfjg.common.util.SnowflakeId")
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Basic
    @Column(name = "Task_No")
    public String getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    @Basic
    @Column(name = "Task_Count")
    public String getTaskCount() {
        return taskCount;
    }

    public void setTaskCount(String taskCount) {
        this.taskCount = taskCount;
    }

    @Basic
    @Column(name = "Create_Time")
    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "Del_Flag")
    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgLhjgWrlcxEntity that = (JgLhjgWrlcxEntity) o;
        return Objects.equals(uuid, that.uuid) &&
                Objects.equals(taskNo, that.taskNo) &&
                Objects.equals(taskCount, that.taskCount) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(delFlag, that.delFlag);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uuid, taskNo, taskCount, createTime, delFlag);
    }
}
